﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MBBStoreClient
{
    public partial class frmAboutThis : Form
    {
        public frmAboutThis()
        {
            InitializeComponent();

            btnClose.Click += new EventHandler(btnClose_Click);
            panel2.EnabledChanged += new EventHandler(panel2_EnabledChanged);
        }

        void panel2_EnabledChanged(object sender, EventArgs e)
        {
            if (!panel2.Enabled)
            {
                panel2.BackColor = Color.MidnightBlue;

            }
            else
            {
                panel2.BackColor = Color.RoyalBlue;
            }
        }
        void btnClose_Click(object sender, EventArgs e)
        {
            pnlForm.Dispose();
            this.Dispose();
        }
        public Panel PanelForm
        {
            get { return pnlForm; }
        }
        public void Initialize(string Title)
        {
            this.Select();
            lblText.Text = Title;
            lblAppVer.Text = "ver." + Application.ProductVersion;
            label1.BackColor = Color.FromArgb(0, 192, 192, 255);
            label2.BackColor = Color.FromArgb(0, 192, 192, 255);

            lblDatabase.Text = "ver." + uCoreClasses.uDatabase.Version;
            lblTessellation.Text = "ver." + uCoreClasses.uTesselation.Version;
            lblThreader.Text = "ver." + uCoreClasses.uThreader.Version;
        }
        public void FrameSliderVersion(string ver)
        {
            lblFrameSlider.Text = "ver." + ver;
        }
    }
}
